from rest_framework import serializers
from system.models import TenantPackage


class TenantPackageSerializer(serializers.ModelSerializer):
    class Meta:
        model = TenantPackage
        fields = '__all__'


class TenantPackageViewSet(viewsets.ModelViewSet):
    queryset = TenantPackage.objects.filter(deleted=False)
    serializer_class = TenantPackageSerializer